package org.peoplesearch.pseindexer.processors;


import org.apache.solr.common.SolrInputDocument;
import org.peoplesearch.vk.api.androidvksdk.WallMessage;
import org.peoplesearch.vk.utils.SerializableUser;

public class WallAdderProcessor implements UserProcessor {

    public void process(SolrInputDocument doc, SerializableUser user) {
        String holeWall = "";
        for (WallMessage message : user.wallMessages) {
            holeWall += message.text;
        }
        doc.addField("wall", holeWall);
    }

}
